<template>
  <el-dialog :title="dialogText[dialogStatusParkMag]" :visible.sync="dialogCreateVisibleDialog" center width="720px">
    <el-form ref="detailFormMag"  :inline="true" :model="tempParkMagDialog"
             :label-position="'left'"
             label-width="90px" style="text-align: left">
      <el-form-item label="建议对象" prop="complaints_obj">
        <el-input   readonly />
      </el-form-item>
      <el-form-item label="建议类型" prop="complaints_type" style="margin-left: 50px">
        <el-input value=""  readonly ></el-input>
      </el-form-item>
      <el-form-item label="建议人" prop="complaints_people">
        <el-input value=""  readonly ></el-input>
      </el-form-item>
      <el-form-item label="联系方式" prop="complaints_phone"  style="margin-left: 50px">
        <el-input  readonly value=""/>
      </el-form-item>
      <el-form-item label="建议渠道" prop="complaints_channel">
        <el-input value=""  readonly></el-input>
      </el-form-item>
      <el-form-item label="建议时间" prop="complaints_time"  style="margin-left: 50px">
        <el-input value=""  readonly></el-input>
      </el-form-item>
    </el-form>
    <el-form>
      <el-form-item label="详细描述" prop="complaints_text">
        <el-input  readonly  type="textarea" value=""/>
      </el-form-item>
    </el-form>
    <div slot="footer" class="dialog-footer">
      <el-button @click="dialogCreateVisibleDialog = false" class="btn-search">关闭</el-button>
    </div>

  </el-dialog>
</template>

<script>
  /* eslint-disable */
  // import PersonChildDialogDw from "../../organizationManagement/personChild/personChildDialogDw";
  // import PersonChildDialogRoad from "../../organizationManagement/personChild/personChildDialogRoad";
  export default {
    created() {

    },
    components: {
      // PersonChildDialogRoad,
      // PersonChildDialogDw
    },
    name: "suggestion-detail-dialog",
    props: ['dialogStatusParkMag', 'dialogVisible', 'tempParkMag'],
    watch: {
      dialogCreateVisibleDialog() {
        this.$emit('update:dialogVisible', this.dialogCreateVisibleDialog)
      },
      dialogVisible(val) {
        this.dialogCreateVisibleDialog = val
      },
      tempParkMag(val) {
        this.tempParkMagDialog = val
      }
    },

    data() {
      return {
        dialogText:'详情',
        dialogCreateVisibleDialog: false,
        // dialogDwVisibleParkMg: false,
        // dialogRoadVisiblParkMag: false,
        tempParkMagDialog: {
          complaints_obj: '1111',
          complaints_type: '222',
          complaints_people:'44',
          complaints_phone:'33',
          complaints_channel:'55',
          complaints_time:'66',
          complaints_text:'77',
        },
      }
    },
    methods: {
      // createDataParkMag() {
      //   this.$refs['detailFormMag'].validate((valid) => {
      //     if (valid) {
      //       this.$emit('createDataParkMag', this.tempParkMagDialog)
      //     }
      //   })
      // },
      // updateDataEquipmentMag() {
      //   this.$refs['detailFormMag'].validate((valid) => {
      //     if (valid) {
      //       this.$emit('updateDataEquipmentMag', this.tempParkMagDialog)
      //     }
      //   })
      // },
      // handleSelectDw() {
      //   this.dialogDwVisibleParkMg = true
      // },
      // selectDwnameParkMag(val) {
      //   this.tempParkMagDialog.park_ssdwname = val.orgname
      //   this.tempParkMagDialog.park_ssdw = val.orgno
      //   this.dialogDwVisibleParkMg = false
      // },
      // // handleSelectRoad() {
      // //   this.dialogRoadVisiblParkMag = true
      // // },
      // // selectRoadNameParkMag(val) {
      // //   this.tempParkMagDialog.park_road = val.unitname
      // //   this.tempParkMagDialog.park_roadno = val.unitno
      // //   this.dialogRoadVisiblParkMag = false
      // // },
      // // initData() {
      // //   selDictonary().then(res => {
      // //     for (var item in res) {
      // //       if (res[item].id == "ori") {//
      // //         this.dlncs = res[item].comboboxDetailList
      // //       } else if (res[item].id == "enableflag") {
      // //         this.statuss = res[item].comboboxDetailList
      // //       } else if (res[item].id == "roadtype") {
      // //         this.dllxs = res[item].comboboxDetailList
      // //       } else if (res[item].id == "sffs") {
      // //         this.sffss = res[item].comboboxDetailList
      // //       } else if (res[item].id == "jcfs") {
      // //         this.jcfss = res[item].comboboxDetailList
      // //       }
      // //     }
      // //   })
      // //   getChargeStandard().then(res => {
      // //     this.sfbzs = res
      // //   })
      // // }
    }
  }
</script>

<style scoped>

</style>
